lcWndMagnifier Home

Defines Magnifier parameters. If you intend to use Magnifier in your application, then this function must be called just after creation of LiteCAD graphics window (lcCreateWindow). Later you can on/off magnifier by setting LC_PROP_WND_MAGNIFIER property.

 BOOL lcWndMagnifier (
   HANDLE hLcWnd,
   BOOL bOn,
   int Width,
   int Height,
   int Zoom,
   int Flags
 );

Parameters
hLcWnd
  Handle to a graphics window.
bOn
  If true - a magnifier will be displayed, if false - hidden. (Also window property LC_PROP_WND_MAGNIFIER)
Width
  Width of magnifier frame.
Height
  Height of magnifier frame.
Zoom
  Can be one of the following values:

Value Mode
LC_MAG_ZOOM_4 Zoom x4
LC_MAG_ZOOM_6 Zoom x6
LC_MAG_ZOOM_8 Zoom x8
LC_MAG_ZOOM_10 Zoom x10
LC_MAG_ZOOM_12 Zoom x12
LC_MAG_ZOOM_14 Zoom x14

Flags
  Can be a combination of the following values:

Value Meaning
LC_MAG_CENTER Draw center marker (cross)


Return Value

  If the function succeeds, the return value is nonzero (TRUE).

Remarks

  When magnifier is active, you can position cursor over the magnifier frame and click right mouse button to call popup menu where you can change some properties.
Also see commands LC_CMD_MAG...